package net.zjitc.lib.Share.wait;

public class Producer implements Runnable {
    Quene q;
    public Producer(Quene q) {
        this.q = q;
//        new Thread(this, "Producer");
    }

    public void run() {
        int i = 0;
        while (true)
        q.put(i);
    }

    /**@Override public void run() {
    int i = 0;
    while (true) {
    q.put(i++);
    }
    }*/
}
